//
//  ZZCTRSiftController.m
//  ZZC-Finance
//
//  Created by mac on 2017/5/24.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "ZZCTRSiftController.h"
#import "ZZCRepaymentController.h"
#import "ZZCBuyUbiController.h"
#import "ZZCQuotaController.h"
#import "ZZCCreditController.h"
@interface ZZCTRSiftController ()
@property (weak, nonatomic) IBOutlet UITextField *seekTextField;

@end

@implementation ZZCTRSiftController


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
    [self.navigationController setNavigationBarHidden:YES animated:YES];
}


- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:YES];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = ZZCBGColor;
    UIView *blankView = [[UIView alloc] initWithFrame:CGRectMake(self.seekTextField.frame.origin.x,self.seekTextField.frame.origin.y,30.0, self.seekTextField.frame.size.height)];
    self.seekTextField.leftView = blankView;
    self.seekTextField.leftViewMode =UITextFieldViewModeAlways;
}

//返回
- (IBAction)backClick {
    [self.navigationController popViewControllerAnimated:YES];
}
//搜索
- (IBAction)seekClick {
    ZZCTempController *Temp = [ZZCTempController new];
    [self.navigationController pushViewController:Temp animated:YES];
}

//授信
- (IBAction)creditClick {
    ZZCLog(@"点击了授信");
    ZZCTempController *Temp = [ZZCTempController new];
    Temp.title = @"授信";
    [self.navigationController pushViewController:Temp animated:YES];
}
//订单支出
- (IBAction)orderExpenseClick {
    ZZCLog(@"点击了订单支出");
    ZZCTempController *Temp = [ZZCTempController new];
     Temp.title = @"订单支出";
    [self.navigationController pushViewController:Temp animated:YES];
}

//换置
- (IBAction)replacementClick {
    ZZCLog(@"点击了换置");
    ZZCTempController *Temp = [ZZCTempController new];
     Temp.title = @"换置";
    [self.navigationController pushViewController:Temp animated:YES];
}
//购买
- (IBAction)buyClick {
    ZZCLog(@"点击了购买");
    ZZCBuyUbiController *buy = [ZZCBuyUbiController new];
    [self.navigationController pushViewController:buy animated:YES];
}
//还款
- (IBAction)repaymentClick {
    ZZCLog(@"点击了还款");
    ZZCRepaymentController *rep = [ZZCRepaymentController new];
    [self.navigationController pushViewController:rep animated:YES];
}
//额度
- (IBAction)quotaClick {
    ZZCLog(@"点击了额度");
    ZZCQuotaController *quo = [ZZCQuotaController new];
    quo.sift = @"sift";
    [self.navigationController pushViewController:quo animated:YES];
}

@end
